You should determine what exactly action you would like to patch. After this you can add before_filter
or use alias_method_chain
or rewrite method (it is the WORST way) in your plugin. Your patch will influence on the Redmine core.
Some additional info:
how to write plugins - official tutorial
list of plugins (to see some working examples) - official or try to find on github