Need help installing pry on my MAC, says no write permissions

I have installed pry, did gem install pry. was successful, but when I say pry, zsh says command not found.

Tried the following
(1) Open the terminal and run the following command: code ~/.zshrc
(2) In VS Code, please kindly add the following line to the bottom of the file that opened up: source ~/.rvm/scripts/rvm
(3) Save the file

still did not work

Help please
from_folder in VSC