Is there any way to see the group_vars, host_vars, etc. available to a host in ansible?

Found an answer, from here.

ansible all -m debug -a "var=hostvars[inventory_hostname]"