If you installed a ruby version in your mac using rbenv you may encounter with this issue.
I installed a ruby version using rbenv and it keeps returning the Mac OS X default ruby version.
You need to add the following lines to your ~/.bash_profile.
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"