Ensure that the pasta is well-coated in sauce before transferring to a baking dish. If the sauce looks too thick, loosen with pasta water. You can also cover the baking dish with aluminum foil while in the oven, to retain some extra moisture.