Probing dynamical phase transitions with a superconducting quantum simulator