I just wrote a small script that uses introspection to tell you the methods
defined in a file plus their argument names and default values.
It's a quick hack, but it works surprisingly well.
The nice thing is that method_args.rb actually requires your library code and
will take into account its dependencies too. So it'll tell you all the
methods you'd pull into your runtime if you required some file.
At the time being, all this script does is writing the methods it found on
stdout, but it could for instance send them to another application through a
socket to provide fairly accurate intellisense information, or generate rich tags, or...