I suppose you could run a local Rails app (server), which is then going to run any Ruby code in a controller — e.g. where you could invoke a commandline process like running a Ruby script.
Any browser bookmark is principally going to go to a webpage. So you will need a webpage served locally, which then executes (local) server-side code that invokes your script.