It appears that though very popular, RVM overrides the cd shell command, which could lead to unexpected behavior.
Therefore, there are some alternatives out there:
Out of the three, I picked
rbenv which seemed easy to install and use:
brew install rbenv
eval "$(rbenv init -)"to
to see that everything is ok