Baking is very easy, you have to understand the decarboxilation process though.
Decarbing bud converts the THCA to THC and is always required if you want edibles. I good average to go on is about 100c for about 30-45min. You can find scales online of the THC conversion to breakdown time at various temperatures but the temp and time listed above is generally fine.
You can do this in the oven.
Once you are happy, and the bud is nice and dry/brown.. you can mix this into your cupcake mix and cook away.
You can also fry some bud in some butter, you will see the colour change when the THC has been extracted. Strain the butter and use it in a mix of sorts.
Bearing in mind that you will never know the true THC content if following this method. The only way you can do this accurately is to extract the THC oils and use these in the mixes. That way you can control the actual amount going in.