Set a Default Ruby Version with Ruby Version Manager (RVM)

To set the system-wide version of Ruby with rvm run:

rvm --default use <version number>

For example, to use 3.1.2 as the default version system-wide, run:

rvm --default use 3.1.2

Now this version will be used even when a new terminal tab or window is opened.