Since `debugfs` is a pseudo-filesystem and doesn't represent real storage, any attribute you change won't be remembered across boots (possibly not even across mounts).
For this reason, you should use `mount ... gid=501` rather than adding complexity with a post-mount `chgrp -R 501 ...`.
(In practical terms there will be little difference, assuming of course that `debugfs` implements `chown` and/or `chgrp` operations.