To do this right - it's not a quick fix, you need to go and get some wood putty (local home improvement store) and fill the hole as best you can, just keep pushing it into the hole until you can't get one more dab in there. Then wait - it will need to set-up -- once the waiting is over, carefully screw the peg back on.
D>