def foo(*args)
args
end
p foo:bar
これを Ruby 1.8.7 と Ruby 1.9.3 で実行したらこうなるよ。
$ RBENV_VERSION=ree-1.8.7-2012.02 ruby foo.rb
[:bar]
$ RBENV_VERSION=1.9.3-p392 ruby foo.rb
foo.rb:5:in `<main>': undefined local variable or method `bar' for main:Object (NameError)