How can I add this line on Pages?
You can have Pages automatically add a line across the whole page, the formatting options (dash size etc.) are rather limited though:



You can also use the fill option when setting tabs: