Baking salmon in a foil packet helps to prevent drying out. It will keep the salmon moist and juicy while in the hot oven.