is there any library that can inspect and display what are the arguments that a method takes?
There's Method#arity that lists how many arguments a method can take.
However, you can't determine what types of objects a method expects. That just isn't in the nature of Ruby.