Use the command: rake about. This command will output the following info plus more (hence the ellipsis:
About your application's environment
Rails version 4.2.0
Ruby version 2.2.2-p95 (x86_64-darwin14)
RubyGems version 2.4.6
...