You dig a hole with your shovel and bury the item in it, exactly as you would plant fruit — the tree then grows over the following days. On the GameCube version, that is the method for growing a golden tree.
Watering it daily speeds things up, and you generally need to leave the game running across several real days for it to mature. Golden trees are rare because the thing you bury is hard to obtain in the first place, which is why they are worth the wait.