Look at existing Customization > Plugin code. There are absolutely loads of them now so plenty of examples. Do not skip on reading prior art so you can leverage it.
Sounds like you just want to override one method which is simply a case of redefining it in your plugin.rb (though best practice is arguably to break it out into its own file per module, but not worth it for one method!)