Usually the backing is taped or held onto a flat surface with clips and the batting and top are smoothed out over it. It is then pinned all together before undoing. I personally like to mark with white chalk and that can be done after sandwiching.
Whatever you decide to mark with, test on scrap fabric to see if it can be removed.