No I cannot tell you exactly. You just need to add the function somewhere in your smart contract that makes sense.
If you are new here please follow the guide OpenZeppelin Upgrades: Step by Step Tutorial for Hardhat
This should get you up to speed.
Learning Resources: