If you are specifically asking for RubyMine then here you go!
RubyMine -> Settings -> search for Ruby SDK and Gems select the right version you want
Even you can do add/remove here.