Expose required/optional kw args from method signature.

This is needed for rspec/rspec-mocks#786.
Changelog.