Ireland's prime minister has set a date for a general election and will ask the president to dissolve parliament ahead of voting.