"Help yourself" is fine. You could also say "Have some." "Treat yourself" is okay, but it implies a context that the receiver is reluctant to take a piece., so you are encouraging him/her.
Also, we say "bake" for things that are cooked in the oven like cakes or pies: "I've *baked* a cake."