Installing Ruby 3.1.2 for M1 Mac

1
$ arch -x86_64 rvm install 3.1.2 --with-openssl-dir=/usr/local/opt/openssl@3

Stack Overflow