Dynamical formation of a magnetic polaron in a two-dimensional quantum antiferromagnet