In Ruby, you can only manipulate objects. Variables (including instance variables) aren't objects.
Besides, what do you want your magic method to return in this case:
foo = Object.new
bar = foo
@baz = bar
@qux = bar
magic_method(foo) # what should the return value be and how would it know?