rbenv install 3.x.x # change to latest version
rbenv global !$
rbenv shell !$
gem install jekyll bundler
rbenv rehash

Need to remember to run rbenv rehash to find jekyll executables!

Also webrick is not included for Ruby 3+ so to run the development server you need to manually install by

bundle add webrick