You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: replace_with_primitive_equal.rb
    path of file: ./repos/truffleruby/tool/rubocop-truffleruby/cop
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RuboCop
  module Cop
    module TruffleRuby
      # Prefer Primitive method `equal?` to check whether two objects are
      # the same object.
      #
      # @example
      #
      #   # bad
      # 
    
        def on_send(node)
          captures = bad_method?(node)
          return unless captures

          add_offense(node) do |corrector|
            receiver, argument = captures.map { |n| n&.source }
            receiver ||= 'self'

            source_string = "Primitive.equal?(#{receiver}, #{argument})"
            corrector.replace(node.loc.expression, source_string)
          end
        end