The standard method would be something like
foo = bar(foo)
This is not possible in Ruby. You'll have to write
foo = bar(foo).
Another option would be to let
foo be a mutable object. Then
bar could call methods on it to mutate it. For example, if
foo is a String, Hash, or Array,
bar could call
foo.replace to modify the object that
foo refers to.