a recipe called "macaroni and cheese" appeared in the 1824 cookbook the virginia housewife written by mary randolph. randolph's recipe had three ingredients: macaroni, cheese, and butter, layered together and baked in a hot oven.