Actresses Sofia Vergara and Sara Ramirez attended the CNN Heroes