Loop quantum gravity and spin foams are two closely related theories of quantum gravity. There is an expectation that the sum over histories or path integral formulation of LQG will take the form of a spin foam, although a rigorous connection between the two is available only in 2+1 gravity. Understanding the relation between them will resolve many open questions of both theories. We probe the connection through an exactly soluble model of loop quantum cosmology. Beginning from the canonical theory we construct a spin foam like expansion of LQC. This construction reveals a number of insights into spin foams including the nature of the continuum limit.