Two-dimensional electronic spectroscopy of an ultracold gas