The actress will play Sophie – the new Ted Mosby, if you will – in How I Met Your Father for streaming service Hulu.